﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class CongTyTrongNam : XPObject
    {
        public CongTyTrongNam()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public CongTyTrongNam(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        NamThucTap fNamThucTap;
        [Association(@"CongTyTrongNamReferencesNamThucTap")]
        public NamThucTap NamThucTap
        {
            get { return fNamThucTap; }
            set { SetPropertyValue<NamThucTap>("NamThucTap", ref fNamThucTap, value); }
        }
        CongTy fCongTy;
        [Association(@"CongTyTrongNamReferencesCongTy")]
        public CongTy CongTy
        {
            get { return fCongTy; }
            set { SetPropertyValue<CongTy>("CongTy", ref fCongTy, value); }
        }
        [Association(@"SinhVienTrongCongTyReferencesCongTyTrongNam", typeof(SinhVienTrongCongTy))]
        public XPCollection<SinhVienTrongCongTy> SinhVienTrongCongTys { get { return GetCollection<SinhVienTrongCongTy>("SinhVienTrongCongTys"); } }
    }
}
